/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cnjson.db.persistence.Page;
import com.cnjson.db.service.CrudService;
import com.hongsuan.pplive.modules.sys.dao.SysAppSettingDao;
import com.hongsuan.pplive.modules.sys.entity.SysAppSetting;

/**
 * 单表生成Service
 * @author cgli
 * @version 2016-06-09
 */
@Service
@Transactional(readOnly = true)
public class SysAppSettingService extends CrudService<SysAppSettingDao, SysAppSetting> {

	@Autowired
	private SysAppSettingDao dao;
	
	public SysAppSetting get(String id) {
		return super.get(id);
	}
	public SysAppSetting getLastOne(Integer type){
		return dao.getLastOne(type);
	}

	public List<SysAppSetting> findList(SysAppSetting sysAppSetting) {
		return super.findList(sysAppSetting);
	}

	public Page<SysAppSetting> findPage(Page<SysAppSetting> page, SysAppSetting sysAppSetting) {
		return super.findPage(page, sysAppSetting);
	}

	@Transactional(readOnly = false)
	public void save(SysAppSetting sysAppSetting) {
		super.save(sysAppSetting);
	}

	@Transactional(readOnly = false)
	public void delete(SysAppSetting sysAppSetting) {
		super.delete(sysAppSetting);
	}
	
	

}